package com.ai.dao.edu.cms.info;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ai.model.edu.cms.info.InfoDetail;
import com.ai.model.edu.cms.info.dto.InfoDetailDTO;
import com.ai.model.edu.cms.info.vo.InfoDetailVO;

public interface InfoDetailMapper {
	/**
     * 保存资讯记录
     */
    public Long insertInfoDetail(InfoDetail record);
    
    /**
     * Description	： 这里记述method的说明<br>
     * 
     * @author liuhb
     * @param id
     * @param operator
     * @return
     * @since
     *
     */
    public Long deleteInfoDetail(@Param("id")Long id, @Param("operator")Long operator);
	
	/**
     * 更新资讯记录
     */
    public Long updateInfoDetail(InfoDetail record);
	
    /**
     * 根据条件查询资讯记录
     */
    public List<InfoDetailVO> findInfoDetailByDto(InfoDetailDTO dto);
    
    
    public InfoDetailVO findInfoDetailById(Long id);
    
    
    
    public List<InfoDetailVO> findInfoDetailPageByDto(InfoDetailDTO dto);
    
    public Long countFindInfoDetailPageByDto(InfoDetailDTO dto);
    
    /**
     * 计算满足条件查询资讯记录数
     */
    public Long countInfoDetailByDto(InfoDetailDTO dto);

    /**
     * 根据主键删除记录
     */
    public Long deleteInfoDetailById(Long id);

    /**
     * 根据主键查询记录
     */
    public InfoDetailVO selectInfoDetailById(Long id);
    
    /**
     * 根据主键ID集合查询记录
     */
    public List<InfoDetailVO> selectInfoDetailByIds(List<Long> ids);
    
    /**
     * 批量 修改审核状态 回写 栏目
     * @param map
     */
    public void betchUpdateInfoDetailByIds(Map<String, Object> map);
    
}